	<div id="sidebar"> 
		<!--Begin--><div class="widget_search">
			<?php get_search_form(); ?>
		</div><!--End-->
		<!--Begin--><div class="widget_bb">
			<small class="welcome">Welcome to you!</small>
			<div class="control">		
				<span id="clock">&nbsp;</span>
				<span id="dm"><?php $showtime=date("D,M"); echo $showtime; ?></span>
				<span class="lock">Toggle Lock</span>
				<span class="subcount">
					<a href="http://feed.paranimage.com" title="Paranimage" ><img src="http://www.feedsky.com/feed/paran/sc/gif" /></a>
				</span>
				<?php
					include(TEMPLATEPATH. '/includes/pagerank.php');
					$blogurl = get_bloginfo('url'); 
					$pr = getPageRank($blogurl);
					if ($pr == 0) echo '<span class="pr pr_0">';
					elseif ($pr == 1) echo '<span class="pr pr_1">'; 
					elseif ($pr == 2) echo '<span class="pr pr_2">'; 
					elseif ($pr == 3) echo '<span class="pr pr_3">'; 
					elseif ($pr == 4) echo '<span class="pr pr_4">'; 
					elseif ($pr >= 5) echo '<span class="pr pr_5">'; 
					else echo '<span class="pr pr_sos">';
					echo $pr.'</span>';
				?>
			</div>
			<div class="screen">
				<div class="wall" style="display:none;">
					<?php include(TEMPLATEPATH. '/includes/lifestream.php'); ?>
				</div>
				<div class="loading"><span>Loading...</span></div>
			</div>
		</div><!--End-->
		<!--Begin--><?php if(is_home()) { ?>
		<div class="widget_calendar widget_show">
			<div class="widgetcontent">
				<?php get_calendar(false); ?> 
			</div>
		</div>
		<?php } ?><!--End-->
		<!--Begin--><div class="widget widget_categories<?php if(is_category()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Categories','paranimage'); ?><br/><small>Categories</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_list_categories('title_li=&show_count=1'); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_tag_cloud<?php if(is_tag()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Tags','paranimage'); ?><br/><small>Tags</small></span></h3>
			<div class="widgetcontent">
				<?php wp_tag_cloud(); ?>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_archives<?php if(is_date() or is_year() or is_month() or is_day() or is_time()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Archives','paranimage'); ?><br/><small>Archives</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_get_archives('type=monthly&show_post_count=1'); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_recent_posts widget_posts<?php if(is_single()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Recent Posts','paranimage'); ?><br/><small>Recent Posts</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_get_archives('type=postbypost&limit=10'); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_popular_posts widget_posts">
			<h3 class="widgettitle"><span><?php _e('Most Commented Posts','paranimage'); ?><br/><small>Most Commented</small></span></h3>
			<div class="widgetcontent">
				<ul>
					<?php include(TEMPLATEPATH. '/includes/most-commented.php'); ?>
				</ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_random_posts widget_posts<?php if(is_search()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Random Posts','paranimage'); ?><br/><small>Random Posts</small></span></h3>
			<div class="widgetcontent">
				<ul>
					<?php
						$rand_posts = get_posts('numberposts=10&orderby=rand');
						foreach( $rand_posts as $post ) :
						?>
					<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
					<?php endforeach; ?>
				</ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_recent_comments">
			<h3 class="widgettitle"><span><?php _e('Recent Comments','paranimage'); ?><br/><small>Recent Comments</small></span></h3>
			<div class="widgetcontent">
				<ul><?php include(TEMPLATEPATH. '/includes/recent-comments.php'); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_authors<?php if(is_author()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Authors','paranimage'); ?><br/><small>Authors</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_list_authors('show_fullname=1&optioncount=1&exclude_admin=0'); ?></ul> 
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_bookmarks">
			<h3 class="widgettitle"><span><?php _e('Bookmarks','paranimage'); ?><br/><small>Bookmarks</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_list_bookmarks('title_li='); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_pages<?php if(is_page()) echo" widget_show"; ?>">
			<h3 class="widgettitle"><span><?php _e('Pages','paranimage'); ?><br/><small>Pages</small></span></h3>
			<div class="widgetcontent">
				<ul><?php wp_list_pages('title_li='); ?></ul>
			</div>
		</div><!--End-->
		<!--Begin--><div class="widget widget_meta">
			<h3 class="widgettitle"><span><?php _e('Meta','paranimage'); ?><br/><small>Meta</small></span></h3>
			<div class="widgetcontent">
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
				</ul>
			</div>
		</div><!--End-->
	</div><!-- end #sidebar -->